package dbobjects;

import dbreflection.tablemanagement.DOTable;
import dbreflection.tablemanagement.DOField;
import dbreflection.tablemanagement.DatabaseObject;

import java.sql.Timestamp;

/**
 * User: [J0k3r]
 * Date: 15.01.2009
 * Time: 20:19:50
 */
@DOTable(table = "db_object_history", pk = "id")
public class DBObjectHistory extends DatabaseObject
{
    @DOField(column = "id")
    private Integer id;
    @DOField(column = "object_id")
    private Integer objectID;
    @DOField(column = "user_id")
    private Integer userID;
    @DOField(column = "history_type_id")
    private Integer historyTypeId;
    @DOField(column = "change_time")
    private Timestamp changeTime;

    public DBObjectHistory() {
        this.changeTime = UNASSIGNEDTIMESTAMP;
        this.historyTypeId = UNASSIGNEDINT;
        this.id = UNASSIGNEDINT;
        this.objectID = UNASSIGNEDINT;
        this.userID = UNASSIGNEDINT;
    }

    public Timestamp getChangeTime() {
        return changeTime;
    }

    public void setChangeTime(Timestamp changeTime) {
        this.changeTime = changeTime;
    }

    public Integer getHistoryTypeId() {
        return historyTypeId;
    }

    public void setHistoryTypeId(Integer historyTypeId) {
        this.historyTypeId = historyTypeId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getObjectID() {
        return objectID;
    }

    public void setObjectID(Integer objectID) {
        this.objectID = objectID;
    }

    public Integer getUserID() {
        return userID;
    }

    public void setUserID(Integer userID) {
        this.userID = userID;
    }
}
